package com.exam.demo.controller;

import javax.annotation.Resource;


import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.exam.demo.entity.Account;
import com.exam.demo.service.AccountService;

@RestController
@RequestMapping(value = "/api/user")
public class AccountController {

	@Resource
	private AccountService  accountService;
	
	@RequestMapping("/get/{id}")
	public Account getAccount(@PathVariable("id") Integer id) {
		
		return accountService.getUser(id);
	}
}
